import React from 'react'
import { Cell, Dialog, Toast } from 'react-vant';

interface PROPSTYPE {
    visible?:boolean;
    setVisible?:any;
    onConfirm?:any;
}
function DialogItem(props:PROPSTYPE) {
    let { visible ,setVisible ,onConfirm} = props
    return (
        <div className='DialogItem'>
            <Dialog
                visible={visible}
                title="确定删除该地址吗？"
                showCancelButton
                onConfirm={onConfirm}
                onCancel={() => setVisible(false)}
            >
            </Dialog> 
        </div>
    )
}

export default DialogItem